package com.nycreativity.elecreativity.entity.vo.order

import java.math.BigDecimal
import com.baomidou.mybatisplus.annotation.TableName
import com.nycreativity.elecreativity.entity.BaseEntity
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

/**
 * <p>
 *  订单item
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
@ApiModel("订单详细商品信息")
@TableName("order_item")
data class OrderItemVO(

    /**
     * id
     */
    @ApiModelProperty("id")
    var id: Int? = null,

    /**
     * 商品id
     */
    @ApiModelProperty("商品sku id")
    var skuId: Long? = null,

    /**
     * 商品数量
     */
    @ApiModelProperty("商品数量")
    var goodsCount: Int = 0,

    /**
     * 商品单价
     */
    @ApiModelProperty("商品单价")
    var goodsPrice: BigDecimal = BigDecimal(0),

    /**
     * 多张图片逗号分隔
     */
    @ApiModelProperty("多张图片逗号分隔")
    var images: String? = null,

    /**
     * 商品名称
     */
    @ApiModelProperty("商品名称")
    var goodsName: String? = null,


    /**
     * 总金额
     */
    @ApiModelProperty("总金额")
    var allAmount: BigDecimal = BigDecimal(0)

) : BaseEntity()
